# 工具类
import logging,yagmail

class log():
    log=logging.basicConfig(filename='a3mall.log',
                            filemode='a+',
                            level=logging.DEBUG,
                            format='%(levelname)s-> %(levelno)s-> %(filename)s-> %(asctime)s-> %(message)s')

class mail():
    mail=yagmail.SMTP(user='1508523002@qq.com',password='dhelwmusixdcgdbb',host='smtp.qq.com',port='465')
    mail.send(to='1508523002@qq.com',subject='a3mall系统Web Ui自动化测试报告',contents='a3mall系统Web Ui自动化测试报告',attachments='a3mall.log')


